package com.jy.api.misc.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 数据模型-逻辑模型-数据集字段
 */
@Getter
@Setter
public class DMLuoJiMXSJJZDDto {

    @JSONField(
            serializeUsing = ToStringSerializer.class
    )
    private Long id;

    private LocalDateTime chuangJianSJ;

    private LocalDateTime xiuGaiSJ;

    private Integer zuoFeiBZ;

    @ApiModelProperty(value = "数据集id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long shuJuJID;

    @ApiModelProperty(value = "数据集标识符")
    private String shuJuJBSF;

    @ApiModelProperty("数据元标识符")
    private String shuJuYuanBSF;

    @ApiModelProperty("项目化数据元")
    private String xiangMuHSJY;

    @ApiModelProperty(value = "名称  数据项名称")
    private String mingCheng;

    @ApiModelProperty(value = "编码  数据项标识符")
    private String bianMa;

    @ApiModelProperty(value = "是否主键")
    private Boolean isPrimaryKey;

    @ApiModelProperty(value = "说明")
    private String shuoMing;

    @ApiModelProperty(value = "数据类型 S1 S2 D DT")
    private String shuJuLX;

    @ApiModelProperty(value = "项目化数据类型")
    private String xiangMuHSJLX;

    @ApiModelProperty(value = "格式 N1 AN10 AN..10")
    private String geShi;

    @ApiModelProperty(value = "项目化格式 N1 AN10 AN..10")
    private String xiangMuHGS;

    @ApiModelProperty(value = "是否必传 0否 1是")
    private Boolean shiFouBC;

    @ApiModelProperty(value = "值域标识符")
    private String zhiYuBSF;

    @ApiModelProperty(value = "外键数据集")
    private String waiJianSJJId;

    @ApiModelProperty(value = "外键数据集标识符")
    private String waiJianSJJBSF;

    @ApiModelProperty(value = "外键字段ID")
    private String waiJianSJJZDId;

    @ApiModelProperty(value = "外键字段编码")
    private String waiJianSJJZDBM;
}
